package com.deluxelx.soul.inn.service.counselor.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deluxelx.soul.inn.bean.counselor.Appointment;
import com.deluxelx.soul.inn.bean.counselor.AppointmentBO;
import com.deluxelx.soul.inn.mapper.counselor.AppointmentMapper;
import com.deluxelx.soul.inn.service.counselor.AppointmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 预约信息服务实现类
 *
 * @author: zihao.liao
 * @date: 2024/5/28 18:00
 */
@Service
public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appointment> implements AppointmentService {

    @Resource
    private AppointmentMapper appointmentMapper;

    @Override
    public List<AppointmentBO> getAppointmentMes(String counselorId) {
        return appointmentMapper.getAppointmentMes(counselorId);
    }

    @Override
    public Boolean saveEntity(Appointment entity) {
        return appointmentMapper.saveEntity(entity) > 0;
    }
}
